#!/bin/bash

# Basic Awk Syntax: awk -Fs '/pattern/ {action}' input-file
# -F : feild seperator, empty space as default
# /pattern/ : optional, action only act lines that matche the pattern
# {action} : awk programming command, can be 1 or multiple awk commands

# - prints the username of MariaDB program
awk -F: '/MariaDB/ {print $1}' /etc/passwd
echo -e '\n'
# * {print $1}: prints first content of first field.

